import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/views/index'
import communitySettingIndex from '@/views/communitySetting/index'
import communitySettingEdit from '@/views/communitySetting/edit'
import basicSettingIndex from '@/views/basicSetting/basicIndex'
import courseSettingIndex from '@/views/courseSetting/courseIndex'
import courseSettingEdit from '@/views/courseSetting/courseEdit'
import classroomSettingIndex from '@/views/classroomSetting/classIndex'
import recomSettingsIndex from '@/views/recomSettings/recomIndex'
import recomSettingsAddRule from '@/views/recomSettings/addRule'
Vue.use(Router)



export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/communitySettingIndex',
      name: 'communitySettingIndex',
      component: communitySettingIndex
    },
    {
      path: '/communitySettingEdit/:schoolId',
      name: 'communitySettingEdit',
      component: communitySettingEdit
    },
    {
      path: '/basicSettingIndex',
      name: 'basicSettingIndex',
      component: basicSettingIndex
    },
    {
      path: '/courseSettingIndex',
      name: 'courseSettingIndex',
      component: courseSettingIndex
    },
    {
      path: '/courseSettingEdit/:id',
      name: 'courseSettingEdit',
      component: courseSettingEdit
    },
    {
      path: '/classroomSettingIndex',
      name: 'classroomSettingIndex',
      component: classroomSettingIndex
    },
    {
      path: '/recomSettingsIndex',
      name: 'recomSettingsIndex',
      component: recomSettingsIndex
    },
    {
      path: '/recomSettingsAddRule/:schoolId/:id',
      name: 'recomSettingsAddRule',
      component: recomSettingsAddRule
    },
  ]
})
